<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>上标和下标</title>
</head>
<body>
<h6>方程1</h6>
 <p>x<sup>2</sup>+1=5</p>
 <p>x<sub>1</sub>=2,x<sub>2</sub>=-2</p>

</body>
</html>